package com.ylr.storage.framework.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-09-08 16:53:23
 * className: MinioProperties MinIO配置属性
 * version: 1.0
 * description:
 *  `@RefreshScope`：配置允许动态刷新
 */
@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "minio")
@RefreshScope
public class MinioProperties {

    /**
     * MinIO服务地址
     */
    private String endpoint;

    /**
     * accessKey类似于用户ID，用于唯一标识你的账户
     */
    private String accessKey;

    /**
     * secretKey是你账户的密码
     */
    private String secretKey;

    /**
     * 当前使用的捅名称
     */
    private String bucketName;

}
